/*
 * @Description: 底部
 * @Author: iamsmiling
 * @Date: 2021-06-08 21:54:10
 * @LastEditTime: 2021-06-13 18:30:16
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/components/image/chimera_image.dart';
import 'package:flutter/material.dart';

class CommunityGroupFooter extends StatelessWidget {
  const CommunityGroupFooter({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: R.dimen.width,
      color: R.color.ffffffff,
      margin: EdgeInsets.only(top: R.dimen.dp10),
      padding: EdgeInsets.only(
          left: R.dimen.dp17,
          right: R.dimen.dp23,
          top: R.dimen.dp28,
          bottom: R.dimen.dp32),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            "进群方法",
            style: TextStyle(
                fontSize: R.dimen.sp15,
                color: R.color.ff111111,
                fontWeight: FontWeight.w600),
          ),
          Container(
            margin: EdgeInsets.only(top: R.dimen.dp20),
            height: R.dimen.dp100,
            child: Row(
              children: [
                Container(
                  margin: EdgeInsets.only(right: R.dimen.dp15),
                  child: ChimeraImage(
                      borderRadius: BorderRadius.zero,
                      width: R.dimen.dp100,
                      height: R.dimen.dp100,
                      src: "https://i.loli.net/2021/06/08/1INfge5d7HGUMo4.png"),
                ),
                Expanded(
                    child: Container(
                  height: R.dimen.dp100,
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      GestureDetector(
                        onTap: () {},
                        child: Container(
                          padding: EdgeInsets.symmetric(
                              horizontal: R.dimen.dp12, vertical: R.dimen.dp5),
                          decoration: BoxDecoration(
                              color: R.color.ff00c28a,
                              borderRadius: BorderRadius.circular(R.dimen.sp3)),
                          child: Text(
                            "保存图片",
                            style: TextStyle(
                                fontSize: R.dimen.sp12,
                                color: R.color.ffffffff),
                          ),
                        ),
                      ),
                      Container(
                        margin: EdgeInsets.only(
                            top: R.dimen.dp10, bottom: R.dimen.dp10),
                        child: Row(
                          children: [
                            Container(
                              margin: EdgeInsets.only(right: R.dimen.dp10),
                              padding: EdgeInsets.only(
                                  left: R.dimen.dp25,
                                  right: R.dimen.dp30,
                                  top: R.dimen.dp5,
                                  bottom: R.dimen.dp5),
                              decoration: BoxDecoration(
                                  color: R.color.ffeeeeee,
                                  borderRadius:
                                      BorderRadius.circular(R.dimen.sp3)),
                              child: Text(
                                "入群码：XSQ2021X003",
                                style: TextStyle(
                                    fontSize: R.dimen.sp11,
                                    color: R.color.ff111111),
                              ),
                            ),
                            GestureDetector(
                              child: Container(
                                padding: EdgeInsets.symmetric(
                                    horizontal: R.dimen.dp10,
                                    vertical: R.dimen.dp3),
                                decoration: BoxDecoration(
                                    borderRadius:
                                        BorderRadius.circular(R.dimen.sp3),
                                    color: R.color.ff13a0f1),
                                child: Text(
                                  "复制",
                                  style: TextStyle(
                                      fontSize: R.dimen.sp13,
                                      color: R.color.ffffffff,
                                      fontWeight: FontWeight.w500),
                                ),
                              ),
                            ),
                          ],
                        ),
                      ),
                      Container(
                        child: Text(
                          "保存二维码图片在微信中打开识别即可添加管理员为好友，复制入群码发给管理员等待邀请入群即可。",
                          style: TextStyle(
                              fontSize: R.dimen.sp10, color: R.color.ff666666),
                        ),
                      )
                    ],
                  ),
                ))
              ],
            ),
          )
        ],
      ),
    );
  }
}
